<style type="text/css">
table.list_category td {
padding-top:5px;
vertical-align: top;
}
</style>
<!--[ include file="admin_header_menu.htm" ]-->
<div class="admin_content">
    <a class="button add" href="<!--[pnmodurl modname='InnoForum' type='admin' func='form' ctrl='Model']-->">
      <!--[pnml name='_INNOFORUM_ADMIN_LIST_ADD_MODEL_NAME']-->
    </a>

<table class="list_category">
  <tr>
    <th><!--[pnml name='_INNOFORUM_ADMIN_LIST_SUB_CATEGORY_ID']--></th>
    <th><!--[pnml name='_INNOFORUM_ADMIN_LIST_BRAND_NAME']--></th>
    <th><!--[pnml name='_INNOFORUM_ADMIN_LIST_MODEL_NAME']--></th>
    <th class="last"><!--[pnml name='_INNOFORUM_ADMIN_LIST_SUB_CATEGORY_OPERATION']--></th>
  </tr>
  <!--[if $objectArray]-->
    <!--[foreach from=$objectArray item=item]-->
    <tr>
      <td><!--[$item.id]--></td>
      <td><!--[$item.brand_name]--></td>
      <td>
        <!--[if $extendResult.subcategory_model]-->
          <!--[assign var='compare' value='false']-->
          <table>
            <th class="first"><!--[pnml name='_INNOFORUM_ADMIN_LIST_MODEL_NAME']--></th>
            <th class="two"><!--[pnml name='_INNOFORUM_ADMIN_LIST_SUB_CATEGORY_TITLE']--></th>
            <!--[foreach from=$extendResult.subcategory_model item=sb]-->
              <!--[foreach from=$sb item=subsb]-->
                <!--[if $subsb.model_id == $item.id]-->
                  <!--[assign var='compare' value='true']-->
                  <tr>
                    <td><!--[$item.name]--></td>
                    <td><!--[$subsb.subcategory_name]--></td>
                  </tr>
                <!--[/if]-->
              <!--[/foreach]-->
            <!--[/foreach]-->
            <!--[if $compare eq 'false']-->
                <tr>
                  <td><!--[pnml name='_INNOFORUM_ADMIN_LIST_BRAND_CATEGORY_EMPTY']--></td>
                </tr>
            <!--[/if]-->
          </table>
        <!--[else]-->
          <!--[pnml name='_INNOFORUM_ADMIN_LIST_BRAND_CATEGORY_EMPTY']-->
        <!--[/if]-->
      </td>
      <td>
        <a class="button left up" href="<!--[pnmodurl modname='InnoForum' type='admin' func='form' ctrl='Model' id=$item.id]-->">
        <a class="button left delete" href="<!--[pnmodurl modname='InnoForum' type='admin' func='delete' ctrl='Model' id=$item.id]-->" onclick="return confirm('Are you sure you want to delete?')"></a>
      </td>
    </tr>
    <!--[/foreach]-->
  <!--[else]-->
  <tr>
    <td colspan="4" align="center">
      <!--[pnml name='_INNOFORUM_ADMIN_LIST_BRAND_EMPTY']-->
    </td>
  </tr>
  <!--[/if]-->
</table>
<div class="page_action">
				<!--[innopager  show=page												
                								img_prev="modules/InnoForum/pnimages/back.png"
												img_next="modules/InnoForum/pnimages/next.png"
												rowcount=$pager.numitems 
												limit=$pager.itemsperpage 
												posvar=startnum 
												shift=0
												request_uri=$smarty.server.REQUEST_URI						
												
				]-->
</div>
</div>
